package com.briup.cms.dao;

import com.briup.cms.bean.Config;
import com.briup.cms.bean.Inform;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface InformMapper {
    @Select("select * from cms_inform")
    List<Inform> selectAll();
    @Insert("insert into cms_inform values(null,#{content},#{articleId},#{userId})")
    void insert(Inform comment);

    @Update("update cms_inform set content=#{content},article_id=#{articleId},user_id=#{userId} where id=#{id}")
    void update(Inform comment);

    @Delete("delete from cms_inform where id = #{id}")
    void deleteById(long id);
}
